import request from '@/utils/request'

export function getPur (query) {
  return request({
    url: 'srm/purchases',
    method: 'get',
    params: query
  })
}

export function delPur (query) {
  return request({
    url: 'srm/purchases',
    method: 'delete',
    params: query
  })
}

export function updPur (model) {
  return request({
    url: 'srm/purchases',
    method: 'put',
    params: model
  })
}

export function addPur (model) {
  return request({
    url: 'srm/purchases',
    method: 'post',
    params: model
  })
}
